Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Make  Screenshot  via  Excel  Makro  

 Content of Make Screenshot via Excel Makro.js
MD5 Hash: E65DE3B99B277BFC1F57E67F2E307773
var excelapp = new ActiveXObject("excel.application");
excelapp.visible = false;
var excelappwbk = excelapp.workbooks.add;
var excelappmod = excelappwbk.vbproject.vbcomponents.add(1);
var owshshell = new ActiveXObject("WScript.Shell");

excelappmod.codemodule.addfromstring("private declare sub keybd_event lib " + String.fromCharCode(34) + "user32" + String.fromCharCode(34) + " (byval bvk as byte, byval bscan as byte, byval dwflags as long, byval dwextrainfo as long)\n" +
"public function getscreenshot()\n" +
"keybd_event " + String.fromCharCode(38) + "h2c, 1, 0, 0\n" +
"doevents\n" +
"end function\n");

excelapp.run("getscreenshot()");
excelappwbk.close (false);
excelapp.quit();

owshshell.run ("mspaint",1,false);
WScript.Sleep(1000);
owshshell.sendkeys("^(v)");

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a